<div>
    <h1>@message!</h1>

    <p>Current count: @currentCount</p>

    <button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
</div>

@code
{
    string message;
    private int currentCount = 0;
    
    protected override void OnInitialized()
    {
        message = "Hello Photino.Blazor!";
    }

    void IncrementCount(object e)
    {
        currentCount++;
    }
}
